package com.learn.controller;

import com.learn.apis.PayFeignApi;
import com.learn.resp.Result;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author DJJ_F
 * @version 1.0
 * @date 2025/08/01
 * @description ch09 网关 80客户端
 */
@RestController
public class OrderGateWayController {
    @Resource
    private PayFeignApi payFeignApi;
    @GetMapping(value = "/order/gateway/get/{id}")
    public Result getById(@PathVariable("id") Integer id)
    {
        return payFeignApi.getById(id);
    }

    @GetMapping(value = "/order/gateway/info")
    public Result getGatewayInfo()
    {
        return payFeignApi.getGatewayInfo();
    }
}
